using System;
using System.Collections.Generic;
using System.Text;

namespace GoldenAgeHelper.common
{
    public class CboItem
    {
        public CboItem()
        {

        }
        public CboItem(int key, string value)
        {
            this.Key = key;
            this.Value = value;
        }
        private int _key;

        public int Key
        {
            get { return _key; }
            set { _key = value; }
        }

        private string _value;

        public string Value
        {
            get { return _value; }
            set { _value = value; }
        }


        public override string ToString()
        {
            return Value.ToString();
        }
        public override bool Equals(Object obj)
        {
            if (this.GetType().Equals(obj.GetType()))
            {
                CboItem that = (CboItem)obj;
                return (this._key.Equals(that._key));
            }
            return false;
        }
        public override int GetHashCode()
        {
            return this._key.GetHashCode();
        }

    }
}
